package com.pengheng.dao;

import com.pengheng.po.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @project spring-boot-demo
 * @remark
 * @Author Administrator
 * @date 2021/6/8
 */
public interface CommentRepository extends MongoRepository<Comment,String> {

    Page<Comment> findByUserid(String parentid, Pageable pageable);

    Page<Comment> findByParentid(String parentid, Pageable pageable);
}
